<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <script src="./libs/react.js"></script>
    <script src="./libs/react-dom.js"></script>
    <script src="./libs/babel.min.js"></script>
    <script type="text/babel">
      const { useState } = React;
      function App() {
        const [name, setName] = useState();
        const [desc, setDesc] = useState();
        const [skills, setSkills] = useState();
        return (
          <div>
            <ul>
              <li>
                <input
                  onKeyUp={(e) => setName(e.target.value)}
                  type="text"
                  placeholder="请输入名字"
                />
              </li>
              <li>
                <input
                  onKeyUp={(e) => setDesc(e.target.value)}
                  type="text"
                  placeholder="请输入个人简介"
                />
              </li>
              <li>
                <input
                  onKeyUp={(e) => setSkills(e.target.value)}
                  type="text"
                  placeholder="请输入技能"
                />
              </li>
            </ul>
            <button
              onClick={() => {
                console.log(name);
                console.log(desc);
                console.log(skills);
              }}
            >
              提交
            </button>
          </div>
        );
      }
      ReactDOM.render(<App />, document.getElementById("app"));
    </script>
  </body>
</html>
